/**
 * @file userInfo module
 * @author ty
 */

export const state = () => {
    return {
        avatar: "../static/img/icons/android-chrome-512x512.png",
        name: "",
        account: ""
    };
};

export const mutations = {
    setAvatar(state, url) {
        state.avatar = url;
    },
    setName(state, name) {
        state.name = name;
    },
    setAccount(state, account, avatar, name) {
        state.avatar = avatar;
        state.name = name;
        state.account = account;
    }
};
